home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1996 November
/
CHIP Kasım 1996.iso
/
prog
/
gvpd
/
iffflat.des
< prev
next >
Wrap
Text File
|
1994-09-27
|
4KB
|
271 lines
#
# This Descriptor file models a Sun Rasterfile
# Note that 12/32 bit files are not "real rasterfiles"
# but is inserted for 12/floating data support
#
#
# Bilevel file
#
IFFCL_BILEVEL {
bits: 1
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 1 bit
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=1
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 32
line_offset: ((width+15)/16)*2
}
#
# Normal Gray scale
#
IFFCL_GRAY {
bits: 8
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 8 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=8
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 32
line_offset: ((width*bits+15)/16)*2
}
#
# Normal palette
#
IFFCL_PALETTE {
bits: 8
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 8 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=8
byte: @23=1
# Raw palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=2
# Length of palette
byte: @28=0
byte: @29=0
byte: @30=3
byte: @31=0
palette: 32
start_offset: 32+768
line_offset: ((width*bits+15)/16)*2
}
#
# True color
#
IFFCL_RGB {
bits: 8
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 24 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=24
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 34
sample_offset: -1
sample_offset1: -1
next_sample: 3
line_offset: ((width*24+15)/16)*2
}
#
# For Gray Scale12
#
IFFCL_GRAY {
bits: 12
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 12 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=12
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 32
line_offset: ((width*bits+15)/16)*2
}
#
# For Floating point
#
IFFCL_GRAY {
bits: 32
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 32 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=32
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 32
line_offset: ((width*bits+15)/16)*2
}
#
# For Gray Scale16
#
IFFCL_GRAY {
bits: 16
# Sun rasterfile magic number
byte: @0=0x59
byte: @1=0xa6
byte: @2=0x6a
byte: @3=0x95
width: @4=slong
height: @8=slong
# See if 16 bits
byte: @12=0
byte: @13=0
byte: @14=0
byte: @15=16
byte: @23=1
# No palette
byte: @24=0
byte: @25=0
byte: @26=0
byte: @27=0
# No map length
byte: @28=0
byte: @29=0
byte: @30=0
byte: @31=0
start_offset: 32
line_offset: ((width*bits+15)/16)*2
}